<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/context/mytags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <t:base type="jquery,easyui,tools,DatePicker,ckeditor"></t:base>
    <link rel="stylesheet" href="${webRoot}/plug-in/lhgDialog/skins/blue.css"/>
    <link rel="stylesheet" href="${webRoot}/plug-in/lhgDialog/skins/default.css"/>
    <script type="text/javascript" src="${webRoot}/plug-in/ajaxfileupload/ajaxfileupload.js"></script>
    <script type="text/javascript" charset="utf-8"
            src="${webRoot}/plug-in/ueditor1_4_3-utf8-jsp/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8"
            src="${webRoot}/plug-in/ueditor1_4_3-utf8-jsp/ueditor.all.min.js"></script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8"
            src="${webRoot}/plug-in/ueditor1_4_3-utf8-jsp/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript" charset="utf-8" src="${webRoot}/plug-in/QQgeo/geo.js"></script>
    <script type="text/javascript" charset="utf-8" src="${webRoot}/plug-in/My97DatePicker/WdatePicker.js"></script>
</head>

<body scroll="no">
<t:formvalid formid="reviewForm" dialog="true" usePlugin="password" layout="table"
             action="studioController.do?reviewSubmit">
    <input name="studioId" type="hidden" value="${studioEntity.studioId}">

    <div class="new_table_list">
        <table cellpadding="0" cellspacing="1" class="formtable" style="padding-left: 50px">
            <tbody>
            <tr>
                <td align="left" style="width: 100px">
                    <label class="Validform_label">
                        工作室名称:
                    </label>
                </td>
                <td class="txt_left value">
                    <input class="inputxt" style="width: 200px;" value="${studioEntity.name}" maxlength="32">
                        <%--datatype="*"--%>
                    <span class="Validform_checktip"></span>
                </td>
                <td align="left" style="width: 100px">
                    <label class="Validform_label" id="">
                        审核:
                    </label>
                </td>
                <td class="txt_left value">
                        <%--extendJson="{datatype:'*'}"--%>
                        <%--<t:dictSelect id="reviewStatus" field="isReview" typeGroupCode="review"--%>
                        <%--defaultVal="${studioEntity.isReview}" hasLabel="false"></t:dictSelect>--%>
                    <input id="isReview" name="isReview" type="hidden" value="1">
                    <select id="reviewStatus" onchange="initIsReview();">
                        <option value="1">通过</option>
                        <option value="2">不通过</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <label class="Validform_label">
                        创建人:
                    </label>
                </td>
                <td class="txt_left value">
                    <input class="inputxt" name="realname"
                           value="${studioEntity.consultantEntity.aCustomerEntity.realname}" maxlength="32">
                    <span class="Validform_checktip"></span>
                </td>
                <td align="left">
                    <label class="Validform_label">
                        手机号:
                    </label>
                </td>
                <td class="txt_left value">
                    <input class="inputxt" name="phone" value="${studioEntity.consultantEntity.aCustomerEntity.phone}"
                           maxlength="32">
                    <span class="Validform_checktip"></span>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <label class="Validform_label">
                        简介:
                    </label>
                </td>
                <td class="txt_left value" colspan="3">
                    <textarea style="width: 670px;height: 150px;"> ${studioEntity.studioDesc}</textarea>
                    <span class="Validform_checktip"></span>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <label class="Validform_label">
                        擅长领域:
                    </label>
                </td>
                <td class="txt_left value">
                    <textarea style="width: 200px;height: 50px;"> ${studioEntity.studioDesc}</textarea>
                        <%--<span class="Validform_checktip"></span>--%>
                </td>
                <td align="left">
                    <label class="Validform_label">
                        认证类型:
                    </label>
                </td>
                <td class="txt_left value">
                    <input class="inputxt" style="width: 200px;"
                           value="${studioEntity.isAuth==1?"专家工作室":"普通工作室"}" maxlength="32">
                </td>
            </tr>
            <tr>
                <td align="left">
                    <label class="Validform_label">
                        营业执照:
                    </label>
                </td>
                <td class="txt_left value" colspan="3">
                    <img id="auth1ThumbImg"
                         src='${webRoot}/${studioEntity.image==null||studioEntity.image==''?"upload/none.jpg":studioEntity.image}'
                         class="viewimg" alt="预览" title="预览" width="200px;" height="100px;">
                    <a href="javascript:;" class="uploadimg"
                       onclick="javascript:$(this).next().trigger('click')" hidden="hidden">上传图片</a>
                    <input type="file" style="display: none;" name="file" id="auth1"
                           onchange="f_file_upload('auth1','auth1ThumbImg','auth1Thumb')"/>
                    <input type="hidden" name="auth1" id="auth1Thumb"
                           value='${auth1}'/>
                </td>
            </tr>
        </table>
    </div>
</t:formvalid>
<script>
    $(function () {
        $("input").attr("readonly", true);
        $("input").css("color", "#929292");

        $("textarea").attr("readonly", true);
        $("textarea").css("color", "#929292");
        $("img").css("color", "#929292");

    });
    function initIsReview(){
       $("#isReview").val( $("#reviewStatus").val());
    }
    <%--$(function(){--%>
    <%--var province = '${consultant.aCustomerEntity.province}';--%>
    <%--var city =  '${consultant.aCustomerEntity.city}';--%>
    <%--var area = '${consultant.aCustomerEntity.area}';--%>
    <%--//        opt0=[province,city,area];;--%>
    <%--setup();--%>
    <%--initSelValue(province,city,area);--%>
    <%--$("#birthday").val(formatD());//生日--%>
    <%--});--%>

    <%--/*--%>
    <%--*日期格式转换--%>
    <%--*/--%>
    <%--function formatD(){--%>
    <%--var date =  '${consultant.aCustomerEntity.birthday}';--%>
    <%--if(date != ''){--%>
    <%--return formatDate(date);--%>
    <%--}else {--%>
    <%--return '';--%>
    <%--}--%>
    <%--}--%>
    <%--function formatDate(date) {--%>
    <%--var d = new Date(date),--%>
    <%--month = '' + (d.getMonth() + 1),--%>
    <%--day = '' + d.getDate(),--%>
    <%--year = d.getFullYear();--%>

    <%--if (month.length < 2) month = '0' + month;--%>
    <%--if (day.length < 2) day = '0' + day;--%>

    <%--return [year, month, day].join('-');--%>
    <%--}--%>
    <%--/**--%>
    <%--* 添加标签--%>
    <%--* @param second_classes--%>
    <%--*/--%>
    <%--function add_second_classes(second_classes){--%>
    <%--var title="添加标签";--%>
    <%--var url="consultantController.do?secondClasses&ids="+second_classes+"&upiframename="+window.name;--%>
    <%--createwindow(title, url, 580, 530);--%>
    <%--}--%>

    <%--/**--%>
    <%--* 分类回调--%>
    <%--*/--%>
    <%--function classes_callback(fname,ids,tags){--%>
    <%--console.log("回调");--%>
    <%--$("iframe[name="+fname+"]", this.parent.parent.document)[0].contentWindow.f_closeWindow();--%>
    <%--$("#secondClasses").val(ids);--%>
    <%--$("#secondClassesTag").html(tags);--%>
    <%--}--%>

</script>
</body>

</html>